package com.youedata.modular.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 水价信息表
 * </p>
 *
 * @author hst
 * @since 2021-07-26
 */
@TableName("water_price_information_info")
public class WaterPriceInformationInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 水价
     */
    @TableField("water_price")
    private BigDecimal waterPrice;

    /**
     * 用水时间
     */
    @TableField("use_water_time")
    private LocalDate useWaterTime;

    /**
     * 用水地点
     */
    @TableField("use_water_address")
    private String useWaterAddress;

    /**
     * 用水量
     */
    @TableField("water_consumption_range")
    private String waterConsumptionRange;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 创建人
     */
    @TableField("create_user")
    private Long createUser;

    /**
     * 更新人
     */
    @TableField("update_user")
    private Long updateUser;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getWaterPrice() {
        return waterPrice;
    }

    public void setWaterPrice(BigDecimal waterPrice) {
        this.waterPrice = waterPrice;
    }

    public LocalDate getUseWaterTime() {
        return useWaterTime;
    }

    public void setUseWaterTime(LocalDate useWaterTime) {
        this.useWaterTime = useWaterTime;
    }

    public String getUseWaterAddress() {
        return useWaterAddress;
    }

    public void setUseWaterAddress(String useWaterAddress) {
        this.useWaterAddress = useWaterAddress;
    }

    public String getWaterConsumptionRange() {
        return waterConsumptionRange;
    }

    public void setWaterConsumptionRange(String waterConsumptionRange) {
        this.waterConsumptionRange = waterConsumptionRange;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "WaterPriceInformationInfo{" +
        "id=" + id +
        ", waterPrice=" + waterPrice +
        ", useWaterTime=" + useWaterTime +
        ", useWaterAddress=" + useWaterAddress +
        ", waterConsumptionRange=" + waterConsumptionRange +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        "}";
    }
}
